<extend name="Public:base" />
<block name="header" >
    <!--<span class="action-span"><a href="#">积分记录列表</a></span>-->
    <span class="action-span1"><a href="#">武汉同兴一站办企业服务有限公司 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 积分记录列表 </span>
    <div style="clear:both"></div>
</block>

<block name="body">
    <form action="{:U('integral_user')}" name="searchForm" method="post">
        <img src="__PUBLIC_ADMIN__/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
        <!-- 分类 -->
        <select name="type_id">

            <option  name="type_id" value="0">|&#45;&#45;请选择</option>
            <foreach name="type" item="vo" key="k">
                <option  name="type_id" id="kk{$k}" value="{$k}">|&#45;&#45;{$vo}</option>
            </foreach>

        </select>
    关键字 <input type="text" name="goods_name" size="15" id="key" value=""/>
    排序&nbsp;&nbsp;&nbsp;&nbsp;
        按id <input type="radio" name="pai" checked="checked" id="integral_id" value="integral_id">
        按积分 <input type="radio" name="pai" id="integral" value="integral">
        按获取时间 <input type="radio" name="pai" id="get_time" value="get_time">
        按失效时间 <input type="radio" name="pai" id="lose_time" value="lose_time">
    <input type="submit" value="搜索 " class="button" />
    </form>
<!-- 商品列表 -->

<div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
        <tr>
            <th>编号</th>
            <th>用户</th>
            <th>类型</th>
            <th>积分</th>
            <th>已使用积分</th>
            <th>获得时间</th>
            <th>失效时间</th>
            <th>详情</th>
            <th>操作</th>
        </tr>
        <volist name="data" id="vo" key="sort">
        <tr>
            <td align="center">{$vo.integral_id}</td>
            <td align="center"><span>{$vo.user_ids}</span></td>
            <td align="center"><span>{$vo.type}</span></td>
            <td align="center"><span>{$vo.integral}</span></td>
            <td align="center"><span>{$vo.use_integral}</span></td>
            <td align="center"><span>{$vo.get_time}</span></td>
            <td align="center"><span>{$vo.lose_time}</span></td>
            <td align="center" width="35%"><span>{$vo.integral_info}</span></td>
            <td align="center">
            <!--<a href="{:U('integral_goodsedit','id='.$vo['integral_goodsinfo_id'])}" >编辑</a>-->
            <a href="{:U('integral_userdel','id='.$vo['integral_id'])}" >删除</a>
            </td>
        </tr>
        </volist>
    </table>

    <!-- 分页开始 -->
    <table id="page-table" cellspacing="0">
        <tr>
            <td align="center" nowrap="true">
              {$page}
            </td>
        </tr>
    </table>
    <input type="hidden" id="type" value="{$type_id}">
    <input type="hidden" id="key_world" value="{$key_world}">
    <input type="hidden" id="pai" value="{$pai}">

<!-- 分页结束 -->
</div>
    <script type="text/javascript">
        var a=document.getElementById('type').value;
        var b=document.getElementById('key_world').value;
        var c=document.getElementById('pai').value;
        if(a==5){
            document.getElementById('kk5').setAttribute('selected','selected');
            document.getElementById('key').setAttribute('value',b);
            if(c=='integral_id'){
                document.getElementById('integral').removeAttribute('checked')
                document.getElementById('get_time').removeAttribute('checked')
                document.getElementById('lose_time').removeAttribute('checked')
                document.getElementById('integral_id').setAttribute('checked','checked');
            }else if(c=='get_time'){
                document.getElementById('integral').removeAttribute('checked')
                document.getElementById('integral_id').removeAttribute('checked')
                document.getElementById('lose_time').removeAttribute('checked')
                document.getElementById('get_time').setAttribute('checked','checked');
            }else if(c=='lose_time'){
                document.getElementById('integral').removeAttribute('checked')
                document.getElementById('integral_id').removeAttribute('checked')
                document.getElementById('get_time').removeAttribute('checked')
                document.getElementById('lose_time').setAttribute('checked','checked');
            }else if(c=='integral'){
                document.getElementById('lose_time').removeAttribute('checked')
                document.getElementById('integral_id').removeAttribute('checked')
                document.getElementById('get_time').removeAttribute('checked')
                document.getElementById('integral').setAttribute('checked','checked');
            }
        }
    </script>
</block>